<?php
require_once("library/template.php");
require_once("resources/const.php");
$views = $post['views'];
$user = $post['name'];//id2Name($post['userid']?$temp:"Default");
$date = $post['date'];
$postid = $post['postid'];
$subject = $post['subject'];
$content = $post['content'];
$rating = translateRating($post['rating']);
$img = $post['img'];
global $SNIPPET_LEN;
if (isset($snippetPost) && $snippetPost) {
    if (strlen($content)>$SNIPPET_LEN) {
        $content = substr ($content , 0,$SNIPPET_LEN-1) . "<a href='post.php?postid=$postid'>...</a>";
    }
}
require("modules/interfaces/post.php");
?>